public class Com extends Player {

	public Com(Option gameOption, int n_Player) {
		super(gameOption, n_Player);
	}
	
	public void move() {
		int x = getPosX();
		int y = getPosY();
		int yDir = getYDir();
		
		if (yDir < 0 && y > 0) {
			setPos(x, y + yDir);
		} else if (yDir > 0 && y < gameOption.getGameObjectPanel().getParentFrame().getContentPane().getHeight() - RECT_HEIGHT)
			setPos(x, y + yDir);
	}

}
